package com.wx.pojo;

import java.sql.Timestamp;
import java.time.LocalDateTime;
/**
 * 用户类
 * @author gzcadmin
 *
 */
public class User {
	
	
	private String id;//用户id
	private String realname;//用户真实姓名
	private String nickName;//用户昵称
	private String password;//用户密码
	private String phone;//用户电话
	private Timestamp regist_time;//用户注册时间
//	private String regist_time;//用户注册时间
	private Integer state=1;//默认等于1  1：普通用户  2：平台管理者  0：冻结用户
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getRealname() {
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	
	/*public String getRegist_time() {
		return regist_time;
	}
	public void setRegist_time(String regist_time) {
		this.regist_time = regist_time;
	}*/
	
	
public Timestamp getRegist_time() {
		return regist_time;
	}
	public void setRegist_time(Timestamp regist_time) {
		this.regist_time = regist_time;
	}
	//	public LocalDateTime getRegist_time() {
//		return regist_time;
//	}
//	public void setRegist_time(LocalDateTime regist_time) {
//		this.regist_time = regist_time;
//	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	
	@Override
	public String toString() {
		return "User [id=" + id + ", realname=" + realname + ", nickName=" + nickName + ", password=" + password
				+ ", phone=" + phone + ", regist_time=" + regist_time + ", state=" + state + "]";
	}
	
	
	
}
